package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface AdditiveService {

	public Additive saveAdditive(Additive additive);

	public Set<Additive> loadAdditives();

	public Set<Additive> loadReferenceAdditives(Set<Additive> additives);

	public Set<Additive> loadAdditivesByIdSet(Set<Integer> additivesId);

	public Map<String, ?> loadAdditiveObjectReferencedSet(Additive additive);

	public Map<String, ?> loadAdditiveClassReferencedSet(Additive additive);

	public void deleteAdditive(Additive additive);

	public void deleteAdditives(Set<Integer> deleteAdditivesId);

	public List<Additive> findAllAdditives(Integer startResult, Integer maxRows);

	public Additive findAdditiveByPrimaryKey(Integer id);

	public Integer countAdditives();

	public Integer countAdditives(CmiPagination page);

	public Integer countAdditivesByName(String queryName);

	public Integer countAdditivesByDetachedCriteria(CmiPagination page);

}
